<?php
include("class/redirectClass.php");
$redirect = new redirect;

$adid=isset($_REQUEST['adid']) ? $_REQUEST['adid'] : '';
$type_c=isset($_REQUEST['type_c']) ? $_REQUEST['type_c'] : '';

$redirect->adClick($adid,$type_c);

header("location:".$redirect->getLinkById($adid)); 
?>	